
export default [
  {
    url: '/api/messages',
    type: 'get',
    response: config => {
      return {
        data: [
          {
            id: '1',
            createUserName: 'lisi',
            createUserId: '123456',
            createTime: '2011-10-05T14:48:00Z',
            title: 'test-Title',
            content: 'test-content',
          },
          {
            id: '2',
            createUserName: '张三',
            createUserId: '123456',
            createTime: '2011-10-05T14:48:00Z',
            title: 'test-Title',
            content: 'test-content123',
          },
        ],
      };
    },
  },
  {
    url: '/api/messages/1',
    type: 'delete',
    response: config => {
      return {
        data: {
          msg: 'success',
          code: '0',
        },
      };
    },
  },
  {
    url: '/api/messages/2',
    type: 'get',
    response: config => {
      return {
        data: {
          id: '1',
          createUserName: 'lisi',
          createUserId: '123456',
          createTime: '2011-10-05T14:48:00Z',
          title: 'test-Title',
          content: 'test-content',
        },
      };
    },
  },
  {
    url: '/api/messages/dood',
    type: 'post',
    response: config => {
      return {
        data: {
          id: '1',
          createUserName: 'lisi',
          createUserId: '123456',
          createTime: '2011-10-05T14:48:00Z',
          title: 'test-Title',
          content: 'test-content',
        },
      };
    },
  },
];
